package org.locker.domain.vo;

import java.math.BigDecimal;
import org.locker.domain.BalanceRecord;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.locker.common.excel.annotation.ExcelDictFormat;
import org.locker.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;


/**
 * 用户余额操作记录视图对象 lk_balance_record
 *
 * @author winnie
 * @date 2023-10-11
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = BalanceRecord.class)
public class BalanceRecordVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 余额记录ID
     */
    @ExcelProperty(value = "余额记录ID")
    private Long balanceRecordId;

    /**
     * 用户ID
     */
    @ExcelProperty(value = "用户ID")
    private Long userId;

    /**
     * 场地ID
     */
    @ExcelProperty(value = "场地ID")
    private Long positionId;

    /**
     * 提现ID
     */
    @ExcelProperty(value = "提现ID")
    private Long withdrawId;

    /**
     * 订单编号
     */
    @ExcelProperty(value = "订单编号")
    private String orderNo;

    /**
     * 价格
     */
    @ExcelProperty(value = "价格")
    private BigDecimal amount;

    /**
     * 状态：deposit 押金(+), withdraw 提现(-)
     */
    @ExcelProperty(value = "状态：deposit 押金(+), withdraw 提现(-)", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "balance_record_type")
    private String recordType;

    /**
     * 状态：success 成功,progress 进行中(会冻结余额) , backed 失败还原（还原->冻结余额）
     */
    @ExcelProperty(value = "状态：success 成功,progress 进行中(会冻结余额) , backed 失败还原", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "balance_record_status")
    private String status;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;


}
